home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earcd / utils / vinced / include / macros.h < prev    next >
C/C++ Source or Header  |  1997-07-29  |  3KB  |  79 lines

  1. #ifndef VNC_MACROS_H
  2. #define VNC_MACROS_H
  3. /*********************************************************
  4.  ** ViNCEd                                              **
  5.  ** a DOS - window handler                              **
  6.  **                                                     **
  7.  ** © 1991-97 THOR-Software inc.                        **
  8.  ** Version 3.30                                        **
  9.  **                                                     **
  10.  ** program version 1.23 05/03/91       THOR            **
  11.  ** update  version 1.25 06/19/91       THOR            **
  12.  ** header file 06/19/91                THOR            **
  13.  ** updated to 3.30      03/31/97       THOR            **
  14.  **                                                     **
  15.  ** ViNCEd Macro functions                              **
  16.  **-----------------------------------------------------**
  17.  **                                                     **
  18.  ** all use at your own risk,etc.,etc.                  **
  19.  **                                                     **
  20.  ** Everything declared as "reserved" or                **
  21.  ** "not used" is NOT free for your use,                **
  22.  ** it will propably used in a later release.           **
  23.  ** All FREE entries are free for public                **
  24.  ** use and are, if not otherwise noticed,              **
  25.  ** initialized as ZERO                                 **
  26.  *********************************************************/
  27.  
  28. #ifndef EXEC_TYPES_H
  29. #include <exec/types.h>
  30. #endif
  31.  
  32. #ifndef VNC_WINDOW_H
  33. #include <vnc/window.h>
  34. #endif
  35.  
  36. /* A macro. The whole structure is allocvec'd, with the name attached
  37.   at the END of this structure */
  38.  
  39. struct ViNCMacro {
  40.         struct ViNCMacro        *vmac_succ;
  41.         struct ViNCMacro        *vmac_pred;     /* linked list */
  42.         UBYTE                    vmac_type;     /* set to VINC_MACROTYPE */
  43.         BYTE                     vmac_count;    /* set to the NEGATED number
  44.                                                    of the macro, e.g -5
  45.                                                    is macro 5 */
  46.         char                    *vmac_text;     /* pointer to the name */
  47. };
  48.  
  49.  
  50. /* vmac_text points actually to macro+sizeof(struct ViNCMacro) */
  51.  
  52. /* A button. Looks almost the same, and is allocated in the same way.
  53.    Both strings are included at the END of this list */
  54.  
  55. struct ViNCButton {
  56.         struct ViNCButton       *vbut_succ;
  57.         struct ViNCButton       *vbut_pred;     /* linked list */
  58.         UBYTE                    vbut_type;     /* set to VINC_MACROTYPE */
  59.         BYTE                     vbut_count;    /* set to the NEGATED number
  60.                                                    of the button, e.g -5
  61.                                                    is button 5 */
  62.         char                    *vbut_text;     /* pointer to the name */
  63.         char                    *vbut_title;    /* what to put into the
  64.                                                    title bar */
  65. };
  66.  
  67. #define VINC_MACROTYPE  0x1e
  68.  
  69. /* The sizes of all strings are limited. The size of a macro body and the
  70.    button body is limited to VPF_FUNCLENGTH, the size of the button title
  71.    is limited to VPF_SHORTLENGTH. See vnc/prefs.h for the defines */
  72.  
  73. #endif
  74.  
  75.  
  76.  
  77.  
  78.  
  79.